package com.wang.hw.hw2;

public class Test {
    public static void main(String[] args) {
        Army army = new Army(3);
        army.addWeapon(new Tank());
        army.addWeapon(new AirPlane());
        army.addWeapon(new Ship());
        army.attackAll();
        System.out.println("---------------");
        army.moveAll();
    }
}
